package com.yunshang.ysmall.service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.yunshang.ysmall.model.MbAddrInfo;
import com.yunshang.ysmall.model.MemberInfo;
import com.yunshang.ysmall.model.OrderInfo;
import com.yunshang.ysmall.model.OrderItemInfo;
import com.yunshang.ysmall.model.ProductInfo;
import com.yunshang.ysmall.model.ReturnFanchang;

public interface MemberService {
	void loginHandle(MemberInfo memberInfo);
	
	MemberInfo getMemberById(String memberId);
	
	boolean doPay(MemberInfo memberInfo);
	
	boolean addMbAddr(MbAddrInfo mbAddrInfo);
	
	boolean delMbAddr(Integer addrId);
	
	MbAddrInfo getAddrByMemberId(String memberId);
	
	MbAddrInfo getAddrById(Integer mbAddrId);
	
	boolean saveOrder(OrderInfo orderInfo);
	
	boolean updateOrder(OrderInfo orderInfo);
	
	boolean saveOrderItem(OrderItemInfo orderItemInfo);
	
	List<OrderInfo> getOrderListByParams(Map params);
	OrderInfo getOrderInfoById(String orderId);
	List<OrderItemInfo> getOrderItemListByOrderId(String orderId);
	Integer getListCountByParams(Map params);

	List<MemberInfo> getMemberList(Map params);

	MbAddrInfo showAddress(String memberId);

	void updateAddress(MbAddrInfo mbAddrInfo);

	OrderInfo selectOrderinfo(String orderId);

	int getCount(String memberId);

	void getProductId(String productid,int soldCount);

	void saveSalesReturnInformation(ReturnFanchang returnFanchang);

	void updateOrderStatus(String orderId);


	List<OrderInfo> findOrderList(Map<String, Object> params);

	int getCountOrderList(String attribute);

	void updateBonusCode(Map< String,Object> parameters);



	
	
}
